package com.slkj.shop.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.slkj.common.annotation.Excel;
import com.slkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 shop_banner
 *
 * @author slkj
 * @date 2023-03-26
 */
@TableName("shop_banner")
public class ShopBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 轮播图id */
    private Long bannerId;

    /** 轮播图名称 */
    @Excel(name = "轮播图名称")
    private String bannerName;

    /** 轮播图图片 */
    private String bannerImg;

    /** 轮播图链接 */
    @Excel(name = "轮播图链接")
    private String bannerLink;

    /** 轮播图转态（0正常 1停用） */
    @Excel(name = "轮播图转态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 轮播图排序 */
    @Excel(name = "轮播图排序")
    private Long sort;

    /** 轮播图删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    public void setBannerId(Long bannerId)
    {
        this.bannerId = bannerId;
    }

    public Long getBannerId()
    {
        return bannerId;
    }
    public void setBannerName(String bannerName)
    {
        this.bannerName = bannerName;
    }

    public String getBannerName()
    {
        return bannerName;
    }
    public void setBannerImg(String bannerImg)
    {
        this.bannerImg = bannerImg;
    }

    public String getBannerImg()
    {
        return bannerImg;
    }
    public void setBannerLink(String bannerLink)
    {
        this.bannerLink = bannerLink;
    }

    public String getBannerLink()
    {
        return bannerLink;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setDelFlag(Long delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bannerId", getBannerId())
            .append("bannerName", getBannerName())
            .append("bannerImg", getBannerImg())
            .append("bannerLink", getBannerLink())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("sort", getSort())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
